import { defineUserConfig } from "vuepress";
import type { DefaultThemeOptions } from "vuepress";
import recoTheme from "vuepress-theme-reco";

export default defineUserConfig({
  title: "黄粱一梦",
  description: "Just playing around",
  lang: "zh-cn",
  base: "/",
  head:[
    [
      "link",
      {rel: "icon", href:"/images/favicon.ico"},
    ],[
      "link",
      {rel: "stylesheet",href: "/css/index.css"}
    ],[
      "script",
      {type: "text/javascript",src:"/scripts/base.js",defer:true}
    ]
  ],
  theme: recoTheme({
    style: "@vuepress-reco/style-default",
    logo: "http://pic.imeitou.com/uploads/allimg/230922/10-230922141637.jpg",
    author: "黄粱一梦",
    authorAvatar: "http://pic.imeitou.com/uploads/allimg/230922/10-230922141637.jpg",
    docsRepo: "https://github.com/vuepress-reco/vuepress-theme-reco-next",
    docsBranch: "main",
    docsDir: "example",
    lastUpdatedText: "最后更新时间",
    catalogTitle: '文章大纲',
    // series 为原 sidebar
    series: {
      "/docs/theme-reco/": [
        {
          text: "module one",
          children: ["home", "theme"],
        },
        {
          text: "module two",
          children: ["api", "plugin"],
        },
      ],
    },
    /* 友链配置 */
    friendshipLinks: [
      {
        title: 'vuepress-recovuepress-recovuepress-recovuepress-reco',
        logo: 'https://avatars.githubusercontent.com/u/54167020?s=200&v=4',
        link: 'https://github.com/vuepress-reco'
      }
    ],
    navbar: [
      { text: "主页", link: "/" },
      { 
        text: "前端博文",
        children: [
         { text: "Vue", link: "/categories/vue/1/"},
         { text: "HTML/CSS", link: "/categories/htmlcss/1/"},
         { text: "webSocket", link: "/categories/websocket/1/"},
         { text: "WebPack", link: "/categories/webpack/1/"},
         { text: 'Uniapp', link: "/categories/uniapp/1/"}
        ]
      },
      {
        text: "服务端",
        children: [
          { text: "Node.js", link: "/categories/node/1/"},
          { text: "MySQL", link: "/categories/mysql/1/"}
        ]
      },
      {
        text: "随笔",
        link: "/categories/suibi/1/"
      },
      { text: "tag", link: "/tags/suibi/1/" },
      // {
      //   text: "Docs",
      //   children: [
      //     { text: "vuepress-reco", link: "/docs/theme-reco/theme" },
      //     { text: "vuepress-theme-reco", link: "/blogs/other/guide" },
      //   ],
      // },
      {text: '时间轴',link: '/timeline',icon:'reco-date'},
      { text: "gitee",link: "https://gitee.com/whriten"},
    ],
    bulletin: {
      body: [
        {
          type: "text",
          content: `欢迎光临黄粱一梦的blog`,
          style: "font-size: 12px;",
        },
        // {
        //   type: "hr",
        // },
        // {
        //   type: "title",
        //   content: "QQ 群",
        // },
        // {
        //   type: "text",
        //   content: `
        //   <ul>
        //     <li>QQ群1：1037296104</li>
        //     <li>QQ群2：1061561395</li>
        //     <li>QQ群3：962687802</li>
        //   </ul>`,
        //   style: "font-size: 12px;",
        // },
        // {
        //   type: "hr",
        // },
        // {
        //   type: "title",
        //   content: "GitHub",
        // },
        // {
        //   type: "text",
        //   content: `
        //   <ul>
        //     <li><a href="https://github.com/vuepress-reco/vuepress-theme-reco-next/issues">Issues<a/></li>
        //     <li><a href="https://github.com/vuepress-reco/vuepress-theme-reco-next/discussions/1">Discussions<a/></li>
        //   </ul>`,
        //   style: "font-size: 12px;",
        // },
        // {
        //   type: "hr",
        // },
        // {
        //   type: "buttongroup",
        //   children: [
        //     {
        //       text: "打赏",
        //       link: "/docs/others/donate.html",
        //     },
        //   ],
        // },
      ],
    },
    commentConfig: {
      type: 'valine',
      options: {
        appId: '2KZ3d5BiBVh0hBlXCWUzDJ1A-gzGzoHsz', // your appId
        appKey: 'zqQKAEXucwv0OG9EckCrwP6E', // your appKey
        hideComments: false, // 全局隐藏评论，默认 false
        // 回复验证码
        verify: false,
        visitor: true,
        avatar: "monsterid"
      },
    },
  })
  // debug: true,
});
